package com.neusoft.neuiotms.dcom.repository.alter;

import org.springframework.data.jpa.repository.JpaRepository;

import com.neusoft.neuiotms.dcom.model.alter.AlterSecondLeader;

public interface AlterSecondLeaderRepository extends JpaRepository<AlterSecondLeader, Long> {

    AlterSecondLeader findByWorkNumAndTaskId(String workNum, String taskId);

    AlterSecondLeader findTopByWorkNumOrderByIdDesc(String workNum);

}
